var depid = window.location.search.slice(window.location.search.lastIndexOf("?")+1);
// 向input标签中传值
document.getElementById("department_id").value = (depid);

function selelt() {
    $.ajax({
        url: "/selectDepartment",
        data:{ department_id:depid },
        type: "POST",
        dataType: "json",
        timeout: 1000,
        cache: false,
        success: function(department) {
            console.log(department);
            var departmentlist = department.data.valueOf();
            document.getElementById("department_name").value = (departmentlist.depname);
            document.getElementById("department_introduction").value = (departmentlist.depbrief);
        }
    });
}